package cn.xi.goods.dao;


import cn.xi.pojo.Spec;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
import java.util.Map;

public interface SpecMapper extends Mapper<Spec> {
    @Select("select * from tb_spec where template_id in (select template_id from tb_category where name = #{name})")
    List<Map> findSpecByBrand(String name);

}
